#!/usr/bin/python
# -*- coding: UTF-8 -*-

import  time
from ProductPublishInfoWrite.IMGDescribe.PCProductIMG import PCMainIMG
from ProductPublishInfoWrite.IMGDescribe.PCDescribe import WritePCDescibe

def IMGDescribeFun(browser,filePath):
    #上传主图
    PCMainIMG.PCMainIMGFun(browser,filePath)

    #滑动鼠标
    time.sleep(2)
    js="var q=document.documentElement.scrollTop=2000"
    browser.execute_script(js)

    #写入电脑端的图文描述
    WritePCDescibe.PCDescibeMainFun(browser,filePath)